#ifndef XJ_XSODCKET_H_
#define XJ_XSODCKET_H_
#include "stdafx.h"  

#ifdef WINDOWS
#include <WINSOCK2.H>  

#pragma  comment(lib,"ws2_32.lib")  
#else
#include <netinet/in.h>
#include <sys/socket.h>
#endif

#include <stdio.h>  

class XSocket
{
    public:
        #ifdef WINDOWS
        typedef SOCKET sock;
        #else
        typedef int sock;
        #endif

        XSocket();
        virtual ~XSocket() = 0;

    protected:
        #ifdef WINDOWS
        WORD sockVersion;
        WSADATA wsData;
        #endif


};

#endif